const router=require('express').Router();
const user=require('../controller/usersOpt/user');
//https://www.bilibili.com/video/BV1EZ4y1H7br?p=5
router.post('/login.do',user.login); //会默认传递参数
router.post('/register.do',user.register);
router.get('/login.do',user.login); //get是query
module.exports=router